package com.ptit.giaothong;

import android.app.Activity;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

public class Taskprocess {
	private static TextView title;
	public static Button back;
	private Activity activity;

	public Taskprocess(Activity activity) {
		this.activity = activity;

	}

	public void init() {
		title = (TextView) activity.findViewById(R.id.txttilebar);
		back = (Button) activity.findViewById(R.id.btn_try);
		
	}
 
	public static void setcontent(String name){
		title.setText(name);
	}
	
	public static void setHome(boolean check) {
		if (check) {
			back.setVisibility(View.GONE);
		} else {
			back.setVisibility(View.VISIBLE);
		}

	}
}
